import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/admin/user'
import old from '@/store/admin/old'
import activity from '@/store/admin/activity';
import feedback from '@/store/admin/feedback';
import volunteer from '@/store/admin/volunteer';
import info from '@/store/admin/info';
import userInfo from '@/store/front/info';
import userActivity from '@/store/front/activity';
import home from '@/store/admin/home';
import category from '@/store/admin/category';
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    viewSize: {},// 视口尺寸
    siteInfo: {// 网站信息
      title: '社区养老服务系统',
    },
    userInfo: {},
    routeLabel: [],// 路由标签
    roles: true,// 权限状态
    rolesRoutes: [],//权限路由
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    old,
    activity,
    feedback,
    volunteer,
    info,
    userInfo,
    userActivity,
    home,
    category,
  }
})
